// 设计系统主题配置 - Less变量版本

// 主色调
@primary-color: #667eea;
@primary-hover: #5a6fd8;
@primary-active: #4c63d2;
@primary-light: rgba(102, 126, 234, 0.1);

// 辅助色
@secondary-color: #764ba2;
@accent-color: #00d4ff;
@success-color: #52c41a;
@warning-color: #faad14;
@error-color: #ff4d4f;
@info-color: #1890ff;

// 中性色
@text-primary: #1f2937;
@text-secondary: #6b7280;
@text-tertiary: #9ca3af;
@text-inverse: #ffffff;

// 背景色
@bg-primary: #ffffff;
@bg-secondary: #f9fafb;
@bg-tertiary: #f3f4f6;
@bg-dark: #1f2937;
@bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
@bg-page: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

// 边框色
@border-light: #e5e7eb;
@border-medium: #d1d5db;
@border-dark: #9ca3af;

// 阴影
@shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
@shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
@shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
@shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
@shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

// 圆角
@radius-sm: 4px;
@radius-md: 8px;
@radius-lg: 12px;
@radius-xl: 16px;
@radius-full: 50%;

// 间距
@spacing-xs: 4px;
@spacing-sm: 8px;
@spacing-md: 16px;
@spacing-lg: 24px;
@spacing-xl: 32px;
@spacing-2xl: 48px;

// 字体
@font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
@font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;

// 字体大小
@text-xs: 12px;
@text-sm: 14px;
@text-base: 16px;
@text-lg: 18px;
@text-xl: 20px;
@text-2xl: 24px;
@text-3xl: 30px;
@text-4xl: 36px;

// 过渡动画
@transition-fast: 0.15s ease;
@transition-base: 0.3s ease;
@transition-slow: 0.5s ease;
@transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

// Less Mixins - 工具类
.page-container() {
  min-height: 100vh;
  padding: @spacing-lg;
  background: @bg-page;
}

.card() {
  background: @bg-primary;
  border-radius: @radius-lg;
  box-shadow: @shadow-md;
  transition: @transition-base;
  
  &:hover {
    box-shadow: @shadow-lg;
    transform: translateY(-2px);
  }
}

.gradient-bg() {
  background: @bg-gradient;
}

.text-gradient() {
  background: @bg-gradient;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

// 按钮Mixins
.btn() {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: @spacing-sm;
  padding: @spacing-sm @spacing-md;
  border: none;
  border-radius: @radius-md;
  font-size: @text-base;
  font-weight: 500;
  cursor: pointer;
  transition: @transition-bounce;
  text-decoration: none;
  
  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}

.btn-primary() {
  background: @bg-gradient;
  color: @text-inverse;
  
  &:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: @shadow-glow;
  }
}

.btn-secondary() {
  background: @bg-primary;
  color: @text-primary;
  border: 1px solid @border-light;
  
  &:hover:not(:disabled) {
    border-color: @primary-color;
    color: @primary-color;
  }
}

.btn-sm() {
  padding: @spacing-xs @spacing-sm;
  font-size: @text-sm;
}

.btn-lg() {
  padding: @spacing-md @spacing-lg;
  font-size: @text-lg;
}